package com.lds.config.center.server.mcp.agent.controller;

import com.lds.config.center.server.mcp.agent.agent.EnvToolAgent;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/agent/env")
@RequiredArgsConstructor
public class EnvMcpController {
    private final EnvToolAgent envToolAgent;

    @GetMapping("/chat")
    public String chat(String message) {
        return envToolAgent.chat(message);
    }

}
